package TwT2;

public abstract class HDD {

    private String Name;
    private String volume;
    private double price;

    public HDD(){}
    public HDD(String Name,String volume,double price){
        this.Name = Name;
        this.volume = volume;
        this.price = price;
    }

    String getName(){
        return this.Name;
    }
    String getVolume(){
        return this.volume;
    }
    double getPrice(){
        return this.price;
    }

    void work(){
        System.out.println(this.Name + "+work");
    }

    public void Display(){
        System.out.println("Name:" + this.Name);
        System.out.println("volume:" + this.volume);
        System.out.println("price:" + this.price);
    }

    public static void main(String[] args) {
        Seagate DM003 = new Seagate("DM003","1TB",300);
        DM003.Display();
        DM003.work();
        WestDigitals EZAZ = new WestDigitals("EZAZ","4TB",500);
        EZAZ.Display();
        EZAZ.work();
    }
}
